package com.passwordmanager.data;

import java.io.Serializable;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

@DatabaseTable(tableName="t_account_acc")
public class Account implements Serializable {
	private static final long serialVersionUID = -793426206714519786L;
	
	@DatabaseField(generatedId=true,columnName="acc_id")
	private int id;  
	
	@DatabaseField(canBeNull=false,columnName="acc_login")
	private String login;
	
	@DatabaseField(canBeNull=false,columnName="acc_password")
	private String password;
	
	@DatabaseField(canBeNull=false,columnName="acc_category")
	private Integer category;
	
	public Account(){}

	public String getName() {
		return login;
	}

	public void setName(String login) {
		this.login = login;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Integer getCategory() {
		return category;
	}

	public void setCategory(Integer category) {
		this.category = category;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}
}
